home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
lists
/
gem
/
l_1199
/
1156
< prev
next >
Wrap
Internet Message Format
|
1994-08-27
|
3KB
From: mforget@elfhaven.ersys.edmonton.ab.ca (Michel Forget)
Subject: Re: Gem List
Date: Wed, 27 Jul 1994 21:53:24 -0600
Precedence: bulk
Hello Warwick,
>Michel Forget wrote:
>>
>>This is not a good approach. It limits the number of windows to 20.
>>MultiTOS can have many more than that, and so can Geneva. A much
>>better (though confusing) solution is to use a linked-list, or a
>>dynamically allocated array. That way the list can grow indefinitely.
>
>In GEM++, I use a linked list, and go to the trouble of maintaining the
>list to be in the same order as the windows. I'm still not sure how
>useful this is, since I could call wind_find(), then search an
>unordered list. Comments?
In MasterBrowse, I use an unordered double-linked list. There is no
real advantage to it (using wind_find() to get the window handle and
then matching that to the handle in the list of browsers) other than
that it is pretty readable. You might save a little time, but I'm
not positive.
>I also never hold onto a window handle if the window is not open.
>This means keeping my own copies of the window sizes, but again,
>that hasn't been a problem. Good for older TOSes. Comments? (Hey,
>maybe everyone does these things - I've not looked at the details of
>many libraries).
I actually do the same thing you do. It is really the only way to keep
track of an item's (object, or whatever you want to call it) position if
you destroy the window when it is closed.
[about changing objc_edit()/form_keybD()]
>This is 100% true. The trouble is, those situations (eg. to allow
>scolling textfields) force you to write all the code that can be reused
>in plain textfields anyway. Because functionality provided by TSRs
>are not extensible. Scrolling text fields are very important (eg. if
>the field is supposed to hold a filename, it is usually restricted
>to 70 characters - that can be as little as 4 directories deep. It
>would be difficult (but not impossible) for a TSR to support this,
>since it cannot normally know how large a field the program can
>handle. So while TSR's might look like a nice solution, they have
>trouble providing what a library can provide.
You should be able to do scrolling text fields without replacing objc_edit(),
right? I have not tried it, but it seems straight-forward. Your point is
taken, though. There are times when replacing objc_edit()/form_keybd()
with your own calls is required. If you can, though, it should be left
alone. That way you might be able to support internally-sizeable text
fields (nonsense, really -- just an example) even if you do not have the
code written for it.
--
Michel Forget \\ mforget@elfhaven.ersys.edmonton.ab.ca //
Electric Storm Software \\ ess@tibalt.supernet.ab.ca //
PGP Public Key Finger. = 1F C0 D3 FE 40 51 7F 47 F3 4A C6 AD 6E 02 71 85